package com.stylefeng.guns.config.web;

import org.beetl.core.Context;
import org.beetl.core.Function;
import org.beetl.ext.fn.DateFunction;

import java.util.Date;

public class TimeStampFunction implements Function {

    @Override
    public Long call(Object[] params, Context context) {
        Date date = new DateFunction().call(params, context);
        return date.getTime();
    }

}
